import { resolve } from "path";
import { defineConfig } from "vite";
import solid from "vite-plugin-solid";

export default defineConfig({
  resolve: {
    alias: {
      "@/": resolve(__dirname, "./src") + "/",
    },
  },
  base: './',
  plugins: [solid()],
  build: {
    commonjsOptions: {
      include: /node_modules|src\/libs/,
      defaultIsModuleExports: false,
    },
  },
});
